﻿using System;
using System.Collections.Generic;
using System.Text;

namespace XKPlatform.Common.MyAttribute
{
    /// <summary>
    /// 自定义attribute 表示接口类型，是否需要权限
    /// </summary>
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)]
    public class ApiPermissionAttribute : Attribute
    {
        /// <summary>
        /// 接口名
        /// </summary>
        public string ApiName { get; set; }
        /// <summary>
        /// 接口类型 页面按钮， 表格按钮，http api
        /// </summary>
        public string ApiType { get; set; }
        /// <summary>
        /// 是否需要权限
        /// </summary>
        public bool isNeedPermission { get; set; }
    }
}
